Test if sensor supports a certain type of direct channel.
Available since API level 26.
\param sensor a {@link ASensor} to denote the sensor to be checked.
\param channelType Channel type constant, either
{@ASENSOR_DIRECT_CHANNEL_TYPE_SHARED_MEMORY}
or {@link ASENSOR_DIRECT_CHANNEL_TYPE_HARDWARE_BUFFER}.
\returns true if sensor supports the specified direct channel type.
Test if sensor supports a certain type of direct channel.
Available since API level 26.
\param sensor a {@link ASensor} to denote the sensor to be checked. \param channelType Channel type constant, either {@ASENSOR_DIRECT_CHANNEL_TYPE_SHARED_MEMORY} or {@link ASENSOR_DIRECT_CHANNEL_TYPE_HARDWARE_BUFFER}. \returns true if sensor supports the specified direct channel type.